package com.qf.person;

/**
 * @author wangyu
 * @Classname: TestPersonInsert
 * @Description: TEST
 * @date 2022-04-05 18:53
 */
public class TestPersonInsert {
    public static void main(String[] args) {
//        测试新增
        PersonDaoimpl personDaoimpl = new PersonDaoimpl();
        Person  person = new Person("lisi",18,DateUtils.strToUtil("1997-08-06"),"lisi@.com","上海市浦东新区");
        int result = personDaoimpl.insert(person);
        if(result == 1){
            System.out.println("新增成功");
        }else {
            System.out.println("新增失败");
        }
    }
}
